package com.ynny.project07.mapper;

import com.ynny.project07.entity.User;
import org.apache.ibatis.annotations.Mapper;

@Mapper

public interface UserMapper {

    //查询所有
//    List<User> selectAll(User user);

    //根据id查询
    User selectUserById(Integer id);

    //添加
    int insertUser(User user);

    //修改
    int updateUser(User user);

    //删除
    int deleteUser(Integer id);

//    User selectUser(User user);
}
